package edu.sctu.practice.class01.zhoumengxue.assign.assign03.assign03_3;

/**
 * Created by ASUS on 2015/10/22.
 */
public class CloneableCircle extends Circle implements Cloneable {
    public Name creator;

    public CloneableCircle(Name creator) {
        this.creator = creator;
    }

    public Name getCreator() {
        return creator;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {

        CloneableCircle circle = (CloneableCircle) super.clone();
        circle.creator = (Name) circle.creator.clone();
        return circle;
    }

}
